<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="renderer" content="webkit">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <title>详情</title>
    <link rel="shortcut icon" href="favicon.ico">
    <link href="/admin/css/bootstrap.min14ed.css?v=3.3.6" rel="stylesheet">
    <link href="/admin/css/font-awesome.min93e3.css?v=4.4.0" rel="stylesheet">
    <link href="/admin/css/animate.min.css" rel="stylesheet">
    <link href="/admin/css/style.min862f.css?v=4.1.0" rel="stylesheet">
 <link href="/admin/frame/layer/css/layui.css" rel="stylesheet">

</head>
<body>
<div class="container-fluid" style="margin-top: 30px;">
    <div class="row">
        <div class="col-sm-12 col-md-12">
            <div class="form-horizontal" id="addForm">
                <div class="form-group">
                    <label class="col-sm-2 control-label"><span style="color: red">*</span>用户名：</label>
                    <div class="col-sm-6">
                        <p class="form-control-static">${obj.username}</p>
                    </div>
                </div>
                <div class="form-group">
                    <label class="col-sm-2 control-label"><span style="color: red">*</span>账号：</label>
                    <div class="col-sm-6">
                        <p class="form-control-static">${obj.identity}</p>
                    </div>
                </div>

                <div class="form-group">
                    <label class="col-sm-2 control-label"><span style="color: red">*</span>联系电话：</label>
                    <div class="col-sm-6">
                        <p class="form-control-static">${obj.phone}</p>
                    </div>
                </div>
                <div class="form-group">
                    <label class="col-sm-2 control-label"><span style="color: red">*</span>联系邮箱：</label>
                    <div class="col-sm-6">
                        <p class="form-control-static">${obj.email}</p>
                    </div>
                </div>
                <div class="form-group">
                    <label class="col-sm-2 control-label"><span style="color: red">*</span>锁定：</label>
                    <div class="col-sm-6">

                            <p class="form-control-static">
                                ${obj.isLock==1?"已锁定":"正常使用中"}
                            </p>

                    </div>
                </div>
                <div class="form-group">
                    <label class="col-sm-2 control-label"><span style="color: red">*</span>角色 ：</label>
                    <div class="col-sm-6">
                        <div class="checkbox">
                            <p class="form-control-static">
                                <c:forEach items="${roleList}" var="role">
                                    <label>
                                        <c:set var="flag" value="false"></c:set>
                                        <c:forEach items="${userRoleList}" var="obj">
                                            <c:if test="${obj.id==obj.roleId}">
                                                <c:set var="flag" value="true"></c:set>
                                            </c:if>
                                        </c:forEach>
                                        <c:if test="${flag==true}">
                                            ${role.roleName},
                                        </c:if>
                                    </label>
                                </c:forEach>


                            </p>

                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>

</body>
<script src="/admin/frame/jquery/jquery-1.9.1.min.js"></script>
<script src="/admin/frame/bootstrap/js/bootstrap.min.js"></script>
<script src="/admin/js/content.min.js?v=1.0.0"></script>
<script src="/admin/frame/jquery-validate/jquery.validate.min.js"></script>
<script src="/admin/frame/jquery-validate/messages_zh.min.js"></script>
<script>
    $().ready(function () {
        $("#addForm").validate();
    });
</script>
</html>
